@echo off

set pscmd="$genrev = (([System.DateTime]::Now - (get-date -year 2010 -month 1 -day 1)).Days.ToString()); Get-Content '%1\AssemblyInfoTemplate.cs' | ForEach-Object { $_.Replace('%%%%genrev%%%%', $genrev) } | Set-Content '%1\AssemblyInfo.cs'"
powershell -command %pscmd%